package level.editor.tool;

import level.editor.command.Command;
import level.editor.command.RequiresOutput;
import level.editor.main.LevelOutput;

public class SetToolCommand extends Command implements RequiresOutput
{
	private Tool tool;
	
	public SetToolCommand(Tool tool)
	{
		super("LevelModule");
		this.tool = tool;
	}
	
	@Override
	public void execute(LevelOutput levelOutput)
	{
		levelOutput.setSelectedTool(tool);
	}
}
